import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { NavBar } from 'antd-mobile'
import '../../styles/classification/MyHeader.css'

class MyHeader extends Component {
    gosearch() {
        this.props.history.push("/search")
    }
    back(){
        this.props.history.goBack()
    }
    render() {
        return (
            <>
                <NavBar onBack={() => { this.back() }}>
                    分类
                </NavBar>
                <div className='classificationheader'>
                    <input type="text" placeholder='搜索店铺内商品' onClick={() => { this.gosearch() }} />
                </div>
            </>

        );
    }
}
export default withRouter(MyHeader);